home *** CD-ROM | disk | FTP | other *** search
- Subject: FWScptbl.cpp bug?
- Sent: 6/15/96 8:59 AM
- Received: 6/17/96 8:22 AM
- From: Lars Travers, ltravers@igc.apc.org
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- I made an ODFDraw document devoid of shapes. Then I ran this script:
-
- tell application "ODFDraw test"
- set collection to every <<class DrSh>>
- end tell
-
- It died with an "FRefCount == 1" message. In FWScptbl.cpp, in the method
- GetAllElements:
-
- if (collection->Count() == 0)
- {
- delete collection;
- collection = NULL;
- }
-
- I think maybe it should say:
- collection->ReleaseScriptable();
- instead of delete collection because collection's FRefCount will
- equal 1 at this point, but the destructor for FW_CScriptableCollection wants
- FRefCount == 0.
-
- Lars
-